[SPARK-11700] [SQL] Remove thread local SQLContext in SparkPlan#9990
[SPARK-11700] [SQL] Remove thread local SQLContext in SparkPlan#9990davies wants to merge 3 commits intoapache:masterfrom
Conversation
There was a problem hiding this comment.
How to define this order in Intelij?
|
LGTM |
|
Test build #46748 has finished for PR 9990 at commit
|
|
There are other places need to be fixed. |
|
Can you update the pull request title to say more? "use weak reference to avoid memory leak" is a bit too generic. The original jira title is ok, or a better one is to mention SQLContext. |
|
@zsxwing The one in SQLContext have a |
Sorry. I meant the compilation failed. |
There was a problem hiding this comment.
A WeakReference is quite weak; you'll lose the reference on a full GC. Is this not going to cause the code to fail suddenly? I don't know that references are any remedy for a leak.
|
Test build #46789 has finished for PR 9990 at commit
|
|
LGTM |
In 1.6, we introduce a public API to have a SQLContext for current thread, SparkPlan should use that.